package listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

import util.HibernateUtils;


public class SessionListener implements HttpSessionListener {
	public void sessionCreated(HttpSessionEvent arg0) {
	}
	public void sessionDestroyed(HttpSessionEvent arg0) {
		HibernateUtils.closeSession();
		Thread.currentThread().interrupt();
	}

}
